// SPDX-FileCopyrightText: 2023-2025 Sangfor Technologies Inc.
// SPDX-License-Identifier: Mulan PSL v2
package entity

// 存储的结构体
type Pvc struct {
	ID         string `json:"id,omitempty" gorm:"primarykey"`                                         // user uuid + name
	Name       string `json:"name" gorm:"type:varchar(30)" binding:"min=1,max=256" example:"nb-data"` // name of pvc in k8s
	UserID     string `json:"userID" gorm:"type:varchar(255)"`                                        // user ID
	Size       int64  `json:"size" gorm:"type:int(32)" binding:"required,min=1,max=256" example:"2"`  //min=1,max=256
	UpdateTime int    `json:"updateTime" gorm:"type:int(32);autoUpdateTime"`                          //column name; auto create and update time
	CreateTime int    `json:"createTime" gorm:"type:int(32);autoCreateTime"`                          //开始时间：2020-12-21 10:00 column name; auto create and update time
}
